# makefile-lib : 纵横软件制作中心雨亦奇编写, 2001-06-28.
XX = g++

INCLUDE = -I../include/
INCLUDE_PATH = ../include/

CFLAGS = -shared -fPIC

all : exhaustive.so move

SRC = exhaustive.cpp

TGT = $(SRC:.c=.o)

$(SRC) : $(INCLUDE_PATH)FengGoSo.hpp
	@touch $@

%.o : %.c
	$(XX) -c $?

exhaustive.so : $(TGT)
	$(XX) $(CFLAGS) $(INCLUDE) -o $@ $(TGT)
move:
	mv *.so ../lib/
